package com.Tjise.opp.extendsdemo;

public class Student extends Person {
    //属性
    private String stuNum;
    private double stuScore;
    //行为

    public Student() {
        System.out.println("执行了子类Student类的默认的构造方法...");
    }


    public Student(String perName, int perAge, String perSex, String stuNum, double stuScore) {
        super(perName, perAge, perSex);
        System.out.println("执行了子类Student类的自定义的构造方法...");
        this.stuNum = stuNum;
        this.stuScore = stuScore;
    }

    public String getStuNum() {
        return stuNum;
    }

    public void setStuNum(String stuNum) {
        this.stuNum = stuNum;
    }

    public double getStuScore() {
        return stuScore;
    }

    public void setStuScore(double stuScore) {
        this.stuScore = stuScore;
    }
}
